package com.ssy.lingxi.purchase.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.purchase.api.dto.request.RequisitionQuantityDeductReq;
import com.ssy.lingxi.purchase.api.feign.PurchaseRequisitionFeign;
import org.springframework.stereotype.Component;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-11-08
 */
@Component
public class PurchaseRequisitionFallback implements PurchaseRequisitionFeign {

    @Override
    public Wrapper<Void> requisitionQuantityDeduct(RequisitionQuantityDeductReq req) {
        return Wrapper.fail(ResponseCode.SERVICE_PURCHASE_ERROR);
    }
}
